package com.itheima.youdianda.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.youdianda.entity.SysRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * 角色表 Mapper 接口
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    @Insert("insert into sys_role (id, name, description, create_date, update_date, remarks, default_data) VALUES (#{id},#{name},#{description},#{createDate},#{updateDate},#{remarks},#{defaultData})")
    void saveRole(SysRole sysRole);

}
